<form method='post' action='searchRoute'>
    <?php
        if ($filters == 'show') {
            $hasStation = array();
            foreach ($stations as $station) {
                $k = $station['Station']['acronym'];
                $v = $station['Station']['name'];
                $hasStation[$k] = $v;
            }
            $selectStation = '';
            echo $this->Form->input('selectStation', array('label'=> 'Escolha a Estação mais próxima: <br>','name'=>'Station', 'required'=>'required','empty' => 'Selecione', 'onchange' => 'this.form.submit()', 'options' => $hasStation));
                        
            }
            else{
                echo 'Escolha uma opção!';
            }

            ?>
</form>